﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Common.Https
{
    public interface IVisitHttps
    {
        /// <summary>
        /// 模拟HttpGet请求
        /// </summary>
        /// <param name="url">url地址</param>
        /// <param name="token">token信息</param>
        public string HttpGet(string url, string token);
        /// <summary>
        /// 模拟HttpPost请求
        /// </summary>
        /// <param name="url">url地址</param>
        /// <param name="bodyJson">实体Json信息</param>
        /// <param name="token">token信息</param>
        /// <returns></returns>
        public string HttpPost(string url, string bodyJson, string token);
        /// <summary>
        /// 模拟HttpDelete请求
        /// </summary>
        /// <param name="url">url地址</param>
        /// <param name="token">token信息</param>
        /// <returns></returns>
        public string HttpDelete(string url, string token);
        /// <summary>
        /// 模拟HttpPut请求
        /// </summary>
        /// <param name="url">url地址</param>
        /// <param name="bodyJson">实体Json信息</param>
        /// <param name="token">token信息</param>
        /// <returns></returns>
        public string HttpPut(string url, string bodyJson, string token);
    }
}
